<template>
  <div>
    <div class="m_exa_jj">
      <h3>{{info.name}}</h3>
      <div class="m_exa_jj_con">
        <div class="line"></div>
        <span>项目简介</span>
      </div>

    </div>
    <!-- <div class="exa-detail-title">{{info.name}}</div> -->
    <div class="exa-detail-content">
      {{info.memo}}
    </div>
    <!--  效果图展示 -->
    <div class="result">
      <div class="line"></div>
      <span>效果图展示</span>
    </div>
    <img v-for="(item,key) in info.imgs_mobile" :key="key" :src="item" class="detail-img" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      id: 0,
      info: {}
    }
  },
  mounted() {
    this.id = this.$route.params.info
    this.getData()
  },
  methods: {
    getData() {
      this.ajaxs('index/exaInfo', {
        data: { id: this.id },
        success: res => {
          this.info = res.msg
          // console.log(res);
        }
      })
    }
  }
}
</script>

<style scoped>
.exa-detail-title {
  width: calc(100% - 40px);
  margin: auto;
  font-size: 21px;
  /* font-weight: 550; */
  color: #333333;
  /* text-align: center; */
  margin-top: 10px;
}
.exa-detail-content {
  width: calc(100% - 40px);
  padding: 0 20px;
  padding-top: 0.1rem;
  text-indent: 2em;
  line-height: 40px;
  font-size: 16px;
  /* font-weight: 500; */
  color: #666666;
  margin-bottom: 0.1rem;
}
.detail-img {
  width: calc(100% - 40px);
  /* width: 205px; */
  display: block;
  margin: auto;
  margin-bottom: 20px;
}
.m_exa_jj {
  display: none;
}
.result {
  display: flex;
  align-items: center;
  padding: 0.1rem 0.2rem;
  padding-top: 0;
  box-sizing: border-box !important;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 0.2rem;
}
.result .line {
  width: 3px;
  height: 0.18rem;
  background: #d51519;
  margin-right: 0.05rem;
}
.result span {
  margin-top: 0.03rem;
  font-size: 0.18rem;
  font-weight: bold;
  color: #333333;
}
@media screen and (max-width: 1200px) {
  .m_exa_jj {
    width: 100%;
    margin: auto;
    padding: 0.1rem 0.2rem;

    margin-top: 0.2rem;
    display: block;
    box-sizing: border-box !important;
    border-bottom: 1px solid #e1e1e1;
  }
  .m_exa_jj h3 {
    color: #333333;
    font-size: 0.28rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.17rem;
  }
  .m_exa_jj_con {
    display: flex;
    align-items: center;
  }
  .m_exa_jj_con .line {
    width: 3px;
    height: 0.18rem;
    background: #d51519;
    margin-right: 0.05rem;
  }
  .m_exa_jj_con span {
    margin-top: 0.03rem;
    font-size: 0.18rem;
    font-weight: bold;
    color: #333333;
  }
}
</style>